<?php

namespace App\BO\PaymentState\Event;

use App\Entities\PaymentEntity;

abstract class ABasePaymentEvent
{
    /**
     * @var PaymentEntity
     */
    protected $payment;

    public function __construct(PaymentEntity $payment)
    {
        $this->payment = $payment;
    }

    /**
     * @return PaymentEntity
     */
    public function getPayment(): PaymentEntity
    {
        return $this->payment;
    }

    /**
     * @param PaymentEntity $payment
     */
    public function setPayment(PaymentEntity $payment): void
    {
        $this->payment = $payment;
    }
}
